linalg_least_squares Module



Interfaces

public interface solve_least_squares

  • private pure function solve_least_squares_mtx(a, b) result(x)

    Solves the system of equations assuming matrix is of full rank.

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    real(kind=real64), intent(in), dimension(:,:) :: b

    The M-by-NRHS matrix .

    Return Value real(kind=real64), allocatable, dimension(:,:)

    The N-by-NRHS matrix .

  • private pure function solve_least_squares_mtx_cmplx(a, b) result(x)

    Solves the system of equations assuming matrix is of full rank.

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    complex(kind=real64), intent(in), dimension(:,:) :: b

    The M-by-NRHS matrix .

    Return Value complex(kind=real64), allocatable, dimension(:,:)

    The N-by-NRHS matrix .

  • private pure function solve_least_squares_vec(a, b) result(x)

    Solves the system of equations assuming matrix is of full rank.

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    real(kind=real64), intent(in), dimension(:) :: b

    The M-element vector .

    Return Value real(kind=real64), allocatable, dimension(:)

    The N-element vector .

  • private pure function solve_least_squares_vec_cmplx(a, b) result(x)

    Solves the system of equations assuming matrix is of full rank.

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    complex(kind=real64), intent(in), dimension(:) :: b

    The M-element vector .

    Return Value complex(kind=real64), allocatable, dimension(:)

    The N-element vector .

public interface solve_least_squares_full

  • private pure function solve_least_squares_mtx_pvt(a, b) result(x)

    Solves the system of equations using a full orthogonal factorization of .

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    real(kind=real64), intent(in), dimension(:,:) :: b

    The M-by-NRHS matrix .

    Return Value real(kind=real64), allocatable, dimension(:,:)

    The N-by-NRHS matrix .

  • private pure function solve_least_squares_mtx_pvt_cmplx(a, b) result(x)

    Solves the system of equations using a full orthogonal factorization of .

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    complex(kind=real64), intent(in), dimension(:,:) :: b

    The M-by-NRHS matrix .

    Return Value complex(kind=real64), allocatable, dimension(:,:)

    The N-by-NRHS matrix .

  • private pure function solve_least_squares_vec_pvt(a, b) result(x)

    Solves the system of equations using a full orthogonal factorization of .

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    real(kind=real64), intent(in), dimension(:) :: b

    The M-element vector .

    Return Value real(kind=real64), allocatable, dimension(:)

    The N-element vector .

  • private pure function solve_least_squares_vec_pvt_cmplx(a, b) result(x)

    Solves the system of equations using a full orthogonal factorization of .

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    complex(kind=real64), intent(in), dimension(:) :: b

    The M-element vector .

    Return Value complex(kind=real64), allocatable, dimension(:)

    The N-element vector .

public interface solve_least_squares_svd

  • private pure function solve_least_squares_mtx_svd(a, b) result(x)

    Solves the system of equations using a singular value decomposition of .

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    real(kind=real64), intent(in), dimension(:,:) :: b

    The M-by-NRHS matrix .

    Return Value real(kind=real64), allocatable, dimension(:,:)

    The N-by-NRHS matrix .

  • private pure function solve_least_squares_mtx_svd_cmplx(a, b) result(x)

    Solves the system of equations using a singular value decomposition of .

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    complex(kind=real64), intent(in), dimension(:,:) :: b

    The M-by-NRHS matrix .

    Return Value complex(kind=real64), allocatable, dimension(:,:)

    The N-by-NRHS matrix .

  • private pure function solve_least_squares_vec_svd(a, b) result(x)

    Solves the system of equations using a singular value decomposition of .

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    real(kind=real64), intent(in), dimension(:) :: b

    The M-element vector .

    Return Value real(kind=real64), allocatable, dimension(:)

    The N-element vector .

  • private pure function solve_least_squares_vec_svd_cmplx(a, b) result(x)

    Solves the system of equations using a singular value decomposition of .

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=real64), intent(in), dimension(:,:) :: a

    The M-by-N matrix .

    complex(kind=real64), intent(in), dimension(:) :: b

    The M-element vector .

    Return Value complex(kind=real64), allocatable, dimension(:)

    The N-element vector .